
  ___  ____  ____  ____  ____ tm
 /__    /   ____/   /   ____/
___/   /   /___/   /   /___/   10.1   Copyright 1984-2009
  Statistics/Data Analysis            StataCorp
                                      4905 Lakeway Drive
     Special Edition                  College Station, Texas 77845 USA
                                      800-STATA-PC        http://www.stata.com
                                      979-696-4600        stata@stata.com
                                      979-696-4601 (fax)

Single-user Stata for Macintosh perpetual license:
       Serial number:  8410513912
         Licensed to:  commie john
                       

Notes:
      1.  (-m# option or -set memory-) 10.00 MB allocated to data
      2.  (-v# option or -set maxvar-) 5000 maximum variables
      3.  Command line editing disabled
      4.  Stata running in batch mode

. do fstat/table_2_iv_fstats_campaign.do 

. set more off

. 
. set mem 1000m

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                             1,003.006M

. set maxvar 5000  

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                             1,003.006M

. set matsize 5000

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize        5000     max. RHS vars in models        191.154M
                                                            -----------
                                                             1,192.906M

. 
. use "~/Dropbox/hookworm/replication/fstat/campaignBEFORE.dta", clear    
(Written by R.              )

. 
. ivreg210 y_dd tr_dd year vote1908 dem1908 school1900 litw1900 litb1900 pop190
> 0 urban1900 black1900 crop1900 nofarms1900 farmval1900 acre1900 bigfarm1900 t
> enant1900 mwages1900 mfactors1900 moutput1900 manworks1900 childlabor1900 (d_
> dd = tr_dd_year)

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics consistent for homoskedasticity only

                                                      Number of obs =     2590
                                                      F( 22,  2567) =   156.07
                                                      Prob > F      =   0.0000
Total (centered) SS     =  104.4203419                Centered R2   =   0.4326
Total (uncentered) SS   =  389.9731149                Uncentered R2 =   0.8481
Residual SS             =  59.24373893                Root MSE      =    .1512

------------------------------------------------------------------------------
        y_dd |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        d_dd |   1.649376   .7491123     2.20   0.028     .1811432    3.117609
       tr_dd |  -.0360477   .0170091    -2.12   0.034     -.069385   -.0027105
        year |  -.2355742   .0787725    -2.99   0.003    -.3899654    -.081183
    vote1908 |   .5814303   .0589206     9.87   0.000      .465948    .6969125
     dem1908 |  -.0197088   .0129097    -1.53   0.127    -.0450113    .0055938
  school1900 |  -.0610622   .0415927    -1.47   0.142    -.1425823    .0204579
    litw1900 |  -1.042424   .5355254    -1.95   0.052    -2.092034    .0071868
    litb1900 |  -.0823815   .0319073    -2.58   0.010    -.1449187   -.0198444
     pop1900 |  -.0021093   .0155212    -0.14   0.892    -.0325302    .0283117
   urban1900 |  -.0808758   .0578724    -1.40   0.162    -.1943036     .032552
   black1900 |   .1938327   .1412085     1.37   0.170     -.082931    .4705963
    crop1900 |  -.0115392   .0117412    -0.98   0.326    -.0345516    .0114731
 nofarms1900 |  -.0272476   .0154601    -1.76   0.078    -.0575489    .0030537
 farmval1900 |   .0445175     .01587     2.81   0.005     .0134128    .0756222
    acre1900 |   -.034263   .0267805    -1.28   0.201    -.0867517    .0182258
 bigfarm1900 |  -.0051947   .0380663    -0.14   0.891    -.0798032    .0694139
  tenant1900 |   .1134216   .0778788     1.46   0.145     -.039218    .2660613
  mwages1900 |  -.0130837   .0074624    -1.75   0.080    -.0277098    .0015424
mfactors1900 |  -.0298577   .0153497    -1.95   0.052    -.0599424    .0002271
 moutput1900 |   .0185237   .0076484     2.42   0.015     .0035332    .0335143
manworks1900 |   .3739552   .2706453     1.38   0.167    -.1564998    .9044101
childla~1900 |  -.7452853   .5308891    -1.40   0.160    -1.785809    .2952382
       _cons |  -.1589721   .1608578    -0.99   0.323    -.4742476    .1563035
------------------------------------------------------------------------------
Underidentification test (Anderson canon. corr. LM statistic):           7.609
                                                   Chi-sq(1) P-val =    0.0058
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):                7.563
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
------------------------------------------------------------------------------
Sargan statistic (overidentification test of all instruments):           0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         d_dd
Included instruments: tr_dd year vote1908 dem1908 school1900 litw1900 litb1900
                      pop1900 urban1900 black1900 crop1900 nofarms1900
                      farmval1900 acre1900 bigfarm1900 tenant1900 mwages1900
                      mfactors1900 moutput1900 manworks1900 childlabor1900
Excluded instruments: tr_dd_year
------------------------------------------------------------------------------

.     
. 
. use "~/Dropbox/hookworm/replication/fstat/campaignAFTER.dta", clear    
(Written by R.              )

. 
. ivreg210 y_dd tr_dd year vote1908 dem1908 school1900 litw1900 litb1900 pop190
> 0 urban1900 black1900 crop1900 nofarms1900 farmval1900 acre1900 bigfarm1900 t
> enant1900 mwages1900 mfactors1900 moutput1900 manworks1900 childlabor1900 (d_
> dd = tr_dd_year) [w=wmat]
(analytic weights assumed)
(sum of wgt is     2.5320e+03)

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics consistent for homoskedasticity only

                                                      Number of obs =     8560
                                                      F( 22,  8537) =  1272.90
                                                      Prob > F      =   0.0000
Total (centered) SS     =  350.9463931                Centered R2   =   0.7467
Total (uncentered) SS   =  1195.432233                Uncentered R2 =   0.9256
Residual SS             =  88.90906445                Root MSE      =    .1019

------------------------------------------------------------------------------
        y_dd |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        d_dd |   .8188667   .2657571     3.08   0.002     .2979924    1.339741
       tr_dd |  -.0132061   .0058892    -2.24   0.025    -.0247487   -.0016635
        year |  -.1417527   .0279062    -5.08   0.000    -.1964479   -.0870575
    vote1908 |   .6872002   .0195598    35.13   0.000     .6488638    .7255367
     dem1908 |  -.0070928   .0073425    -0.97   0.334     -.021484    .0072983
  school1900 |  -.0516423   .0185363    -2.79   0.005    -.0879728   -.0153118
    litw1900 |  -.6724704   .1402324    -4.80   0.000    -.9473209   -.3976199
    litb1900 |  -.1030868   .0367813    -2.80   0.005     -.175177   -.0309967
     pop1900 |  -.0134282   .0066368    -2.02   0.043    -.0264361   -.0004204
   urban1900 |   .0111532   .0215027     0.52   0.604    -.0309914    .0532978
   black1900 |   .0980979   .0441024     2.22   0.026     .0116587    .1845371
    crop1900 |   .0107863    .006222     1.73   0.083    -.0014087    .0229812
 nofarms1900 |   -.027549   .0104771    -2.63   0.009    -.0480837   -.0070143
 farmval1900 |   .0211864   .0061536     3.44   0.001     .0091257    .0332472
    acre1900 |  -.0125964   .0104698    -1.20   0.229     -.033117    .0079241
 bigfarm1900 |  -.0208304   .0139909    -1.49   0.137    -.0482521    .0065913
  tenant1900 |   .0572586   .0310066     1.85   0.065    -.0035133    .1180305
  mwages1900 |  -.0106367   .0034453    -3.09   0.002    -.0173893   -.0038842
mfactors1900 |  -.0161483   .0062324    -2.59   0.010    -.0283635   -.0039331
 moutput1900 |   .0102654   .0035902     2.86   0.004     .0032287     .017302
manworks1900 |   .3794586   .1165793     3.25   0.001     .1509673    .6079499
childla~1900 |  -.5534603   .1619022    -3.42   0.001    -.8707827   -.2361379
       _cons |    .178974   .0718316     2.49   0.013     .0381866    .3197613
------------------------------------------------------------------------------
Underidentification test (Anderson canon. corr. LM statistic):          27.427
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               27.441
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
------------------------------------------------------------------------------
Sargan statistic (overidentification test of all instruments):           0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         d_dd
Included instruments: tr_dd year vote1908 dem1908 school1900 litw1900 litb1900
                      pop1900 urban1900 black1900 crop1900 nofarms1900
                      farmval1900 acre1900 bigfarm1900 tenant1900 mwages1900
                      mfactors1900 moutput1900 manworks1900 childlabor1900
Excluded instruments: tr_dd_year
------------------------------------------------------------------------------

. 
end of do-file
